namespace StudentManagement.Domain.Entities;

public class Score
{
    public int Id { get; set; }
    public int StudentId { get; set; } // 外键
    public int CourseId { get; set; } // 外键
    public decimal? MidtermScore { get; set; } // 期中考试成绩
    public decimal? FinalScore { get; set; } // 期末考试成绩
    public decimal? TotalScore { get; set; } // 总成绩
    public string Grade { get; set; } // 等级
    public DateTime UpdateDate { get; set; } // 更新日期
    
    // 导航属性
    public Student Student { get; set; }
    public Course Course { get; set; }
}